<script setup>
import { ref } from "vue";
const title = ref("标题");
</script>
<template>
  <view class="container">
    <text>{{ title }}</text>
    <view class="custom-page">自定义内容</view>
    <!-- #ifdef MP-WEIXIN -->
    <view>{{ title }}:小程序</view>
    <!-- #endif -->
    <!-- #ifndef MP-WEIXIN -->
    <view>这是显示的数据 </view>
    <!-- #endif -->
  </view>
</template>

<style lang="scss" scoped>
.container {
  width: 100%;
  height: 200px;

  text {
    color: $uni-color-error;
  }
}
</style>
